<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The OCICollection class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.oci-unregister-taf-callback.html">« oci_unregister_taf_callback</a></li>
      <li style="float: right;"><a href="ocicollection.append.html">OCICollection::append »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.oci8.html">OCI8</a></li>
    <li>The OCICollection class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ocicollection" class="reference">
 <h1 class="title">The OCICollection class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5, PHP 7, PHP 8, PECL OCI8 &gt;= 1.1.0)</p>
 

  <div class="section" id="ocicollection.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    OCI8 Collection functionality.
   </p>
   <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    The <span class="classname"><strong class="classname">OCI-Collection</strong></span> class was renamed to <span class="classname"><strong class="classname">OCICollection</strong></span> in PHP 8 OCI8 3.0.0 to align with PHP naming standards.
   </p>
   </p></blockquote>
  </div>


 
  <div class="section" id="ocicollection.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">OCICollection</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ocicollection.append.html" class="methodname">append</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.assign.html" class="methodname">assign</a></span>(<span class="methodparam"><span class="type"><a href="class.ocicollection.html" class="type OCICollection">OCICollection</a></span> <code class="parameter">$from</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.assignelem.html" class="methodname">assignElem</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$index</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.free.html" class="methodname">free</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.getelem.html" class="methodname">getElem</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$index</code></span>): <span class="type"><span class="type">string</span>|<span class="type">float</span>|<span class="type">null</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.max.html" class="methodname">max</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.size.html" class="methodname">size</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocicollection.trim.html" class="methodname">trim</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$num</code></span>): <span class="type">bool</span></div>

   }</div>

 
  </div>
  
 </div>
 
 









































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ocicollection.append.html">OCICollection::append</a> — Appends element to the collection</li><li><a href="ocicollection.assign.html">OCICollection::assign</a> — Assigns a value to the collection from another existing collection</li><li><a href="ocicollection.assignelem.html">OCICollection::assignElem</a> — Assigns a value to the element of the collection</li><li><a href="ocicollection.free.html">OCICollection::free</a> — Frees the resources associated with the collection object</li><li><a href="ocicollection.getelem.html">OCICollection::getElem</a> — Returns value of the element</li><li><a href="ocicollection.max.html">OCICollection::max</a> — Returns the maximum number of elements in the collection</li><li><a href="ocicollection.size.html">OCICollection::size</a> — Returns size of the collection</li><li><a href="ocicollection.trim.html">OCICollection::trim</a> — Trims elements from the end of the collection</li></ul>
</div>
</div></div></body></html>